#ifndef UART_DRV_H_
#define UART_DRV_H_ 1

#include "Cpu.h"
#include "pin_mux.h"

/* Welcome message displayed at the console */
#define welcomeMsg "This example is an simple echo using LPUART\r\n\
it will send back any character you send to it.\r\n\
The board will greet you if you send 'Hello Board'\r\
\nNow you can begin typing:\r\n"

/* Error message displayed at the console, in case data is received erroneously */
#define errorMsg "An error occurred! The application will stop!\r\n"

/* Timeout in ms for blocking operations */
#define TIMEOUT     200U

/* Receive buffer size */
#define BUFFER_SIZE 256U


#define LED_PORT       PTD
#define RED_LED        15U
#define GREEN_LED      16U


/* Buffer used to receive data from the console */

extern uint16_t receiveByteNum;
extern uint16_t timeOutFlag;

extern void Uart_Init(void);
extern void uart_task(void);
extern void Transfer(uint32_t txbuffer_size, uint32_t rxbuffer_size, uint16_t response_enabled);

#endif /*UART_DRV_H_*/